﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YTSK.Model
{
    /// <summary>
    /// 明细表视图
    /// </summary>
    public class Rdrecords_View 
    {
        #region Model 
        /// <summary>
        /// ID
        /// </summary>
        public int AutoID { set; get; }
        /// <summary>
        /// 主表ID
        /// </summary>
        public int ID { set; get; }
        /// <summary>
        /// 存货ID
        /// </summary>
        public int IDInventory { set; get; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? iQuantity { set; get; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? iUnitPrice { set; get; }
        /// <summary>
        /// 不含税金额
        /// </summary>
        public decimal? iMoney { set; get; }
        /// <summary>
        /// 税额
        /// </summary>
        public decimal? iTax { set; get; }
        /// <summary>
        /// 价税合计
        /// </summary>
        public decimal? iSum { set; get; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? iTaxRate { set; get; }
        /// <summary>
        /// 已回冲数量
        /// </summary>
        public decimal? iQuantityBack { set; get; }
        /// <summary>
        /// 原ERP规格型号
        /// </summary>
        public string cDefine30 { set; get; }
        /// 原ERP数量
        /// </summary>
        public decimal? cDefine31 { set; get; }
        /// <summary>
        /// 原ERP单价
        /// </summary>
        public decimal? cDefine32 { set; get; }
        /// <summary>
        /// 原ERP金额
        /// </summary>
        public decimal? cDefine33 { set; get; }
        /// <summary>
        /// 原ERP编码
        /// </summary>
        public string cDefine34 { set; get; }
        /// <summary>
        /// 行号
        /// </summary>
        public int? iRowCount { set; get; }
        /// <summary>
        /// 追踪ID
        /// </summary>
        public int? iTraceID { set; get; }
        /// <summary>
        /// 追踪AutoID
        /// </summary>
        public int? iTraceAutoID { set; get; }
        /// <summary>
        /// 含税单价-销售
        /// </summary>
        public decimal? iUnitPriceSale { set; get; }
        /// <summary>
        /// 不含税金额-销售
        /// </summary>
        public decimal? iMoneySale { set; get; }
        /// <summary>
        /// 税额-销售
        /// </summary>
        public decimal? iTaxSale { set; get; }
        /// <summary>
        /// 价税合计-销售
        /// </summary>
        public decimal? iSumSale { set; get; }
        /// <summary>
        /// 销售税率
        /// </summary>
        public decimal? iTaxRateSale { set; get; }
        /// <summary>
        /// 原ERP行号
        /// </summary>
        public int? cDefine35 { set; get; }
        /// <summary>
        /// 原ERP小票号
        /// </summary>
        public string cDefine36 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int? cDefine37 { set; get; }
        /// <summary>
        /// 件数
        /// </summary>
        public decimal? iNum { set; get; }
        /// <summary>
        /// 件数单价
        /// </summary>
        public decimal? iNPrice { set; get; }
        /// <summary>
        /// 件数金额
        /// </summary>
        public decimal? iNumSum { set; get; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { set; get; }
        /// <summary>
        /// 转换率
        /// </summary>
        public decimal? iCRate { set; get; }
        /// <summary>
        /// 件数单位名称
        /// </summary>
        public string UnitName { set; get; }
        /// <summary>
        /// 货位编码
        /// </summary>
        public int? IDPosition { set; get; }
        /// <summary>
        /// 批号
        /// </summary>
        public string cBatch { set; get; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? dProductDate { set; get; }
        /// <summary>
        /// 有效期至
        /// </summary>
        public DateTime? dExpirationdate { set; get; }
        /// <summary>
        /// 保质期天数
        /// </summary>
        public int? iMassDate { set; get; }
        /// <summary>
        /// 批次属性1
        /// </summary>
        public decimal? cBatchProperty1 { set; get; }
        /// <summary>
        /// 批次属性2
        /// </summary>
        public decimal? cBatchProperty2 { set; get; }

        /// <summary>
        /// 
        /// </summary>
        public string cDf31 { set; get; }
        /// 
        /// </summary>
        public string cDf32 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf33 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf34 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf35 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf36 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf37 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf38 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf39 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf40 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf41 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf42 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf43 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf44 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf45 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int? cDf46 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int? cDf47 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf48 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf49 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf50 { set; get; }
        /// <summary>
        /// 折前金额
        /// </summary>
        public decimal iQuoteMoney { set; get; }
        /// <summary>
        /// 折前税额
        /// </summary>
        public decimal iQuoteTax { set; get; }
        /// <summary>
        /// 折前价税合计
        /// </summary>
        public decimal iQuoteSum { set; get; }
        /// <summary>
        /// 折扣金额
        /// </summary>
        public decimal iDiscountMoney { set; get; }
        /// <summary>
        /// 折扣税额
        /// </summary>
        public decimal iDiscountTax { set; get; }
        /// <summary>
        /// 折扣价税合计
        /// </summary>
        public decimal iDiscountSum { set; get; }
        /// <summary>
        /// 累计开票数量
        /// </summary>
        public decimal? iQuantityKP { set; get; }
        /// <summary>
        /// 累计开票金额
        /// </summary>
        public decimal? iSumKP { set; get; }
        #endregion Model

        /// <summary>
        /// ERP单据号
        /// </summary>
        public string CodeERP { set; get; }
        /// <summary>
        /// ERP的产品编码
        /// </summary>
        public string cInvCodeERP { set; get; }
        /// <summary>
        /// ERP的产品名称
        /// </summary>
        public string cInvNameERP { set; get; }
        /// <summary>
        /// ERP的产品规格
        /// </summary>
        public string cInvStdERP { set; get; }
        /// <summary>
        /// 对应ERP单据的AutoID集合，用“|”分开多单
        /// </summary>
        public string ERPAutoID { set; get; }
        /// <summary>
        /// 存货编码
        /// </summary>
        public string cInvCode { set; get; }
        /// <summary>
        /// 存货名称
        /// </summary>
        public string cInvName { set; get; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string cInvName1 { set; get; }
        /// <summary>
        /// 单位
        /// </summary>
        public string cDW { set; get; }
        /// <summary>
        /// 上级单据来源
        /// </summary>
        public string cSource { set; get; }
        /// <summary>
        /// 存货分类编码
        /// </summary>
        public string cInvCCode { set; get; }
        /// <summary>
        /// 存货分类名称
        /// </summary>
        public string cInvCName { set; get; }
        /// <summary>
        /// 库存量
        /// </summary>
        public decimal iKC { set; get; }
        /// <summary>
        /// 可用数量
        /// </summary>
        public string iKY { set; get; }
        /// <summary>
        /// 税收分类编码
        /// </summary>
        public string TaxCode { set; get; }
        /// <summary>
        /// 税收分类名称
        /// </summary>
        public string TaxName { set; get; }
        /// <summary>
        /// 税收分类编码
        /// </summary>
        public string cTaxType { set; get; }


    }
}
